<template>
  <div class="outer">
    <Tag title="美食">
      <template v-slot:content = "obj">
        <p v-for="item in obj.msg" :key="item">{{item}}</p>
      </template>
    </Tag>
    <Tag title="游戏">
      <template #content="{count}">
        <ul>
          <li>{{count}}</li>
          <li>{{count}}</li>
          <li>{{count}}</li>
        </ul>
      </template>
      <template #footer="{sex}">
        <a href="###">{{sex}}</a>
      </template>
    </Tag>
    <Tag title="电影">
      <template #content="{msg}">
        <ol>
          <li v-for="item in msg" :key="item">{{item}}</li>
        </ol>
      </template>
    </Tag>
  </div>
</template>

<script>
import Tag from "@/components/Tag";
export default {
  name: "App",
  components: {
    Tag,
  },
};
</script>

<style scoped>
.outer {
  width: 800px;
  display: flex;
  justify-content: space-between;
}
</style>